import request from '@/utils/request'

// 登录接口方法
export const login = ({ username, password }) => {
  return request.post('/auth/login', {
    username,
    password
  })
}

// 获取登录用户信息接口方法
export const getUser = () => {
  return request.get('/auth/currentUser')
}
